<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div style='display: none'>
    <form id='initial-data' method="post" action='#'>
        <input type='text' name='libelle' value='<?php echo $this->libelle; ?>'>
        <input type='text' name='debut_periode' value='<?php echo $this->debut; ?>'>
        <input type='text' name='fin_periode' value='<?php echo $this->fin; ?>'>
    </form>
</div>
<div id='period'>Génération de la période<img src="<?php echo $this->basePath() .'/img/grh/ajax-waiting.gif'; ?>"></div>
<div id='semaine'>Génération des semaines<img src="<?php echo $this->basePath() .'/img/grh/ajax-waiting.gif'; ?>"></div>
<div id='details'>Génération des détails<img src="<?php echo $this->basePath() .'/img/grh/ajax-waiting.gif'; ?>"></div>
<div id='planning'>Génération des plannings<img src="<?php echo $this->basePath() .'/img/grh/ajax-waiting.gif'; ?>"></div>
<script type='text/javascript'>
    $(document).ready(function(){
        ajaxLoad('<?php echo $this->url('GRH/default', array('controller' => 'periode', 'action' => 'generateperiod')); ?>', 'period', 'initial-data');
    });
</script>    